<?php
// sw3 FUNCTIONS.PHP
function sw3_head() {
	$sw3_directory = get_bloginfo('stylesheet_directory');
	echo "\t<script type=\"text/javascript\" src=\"$sw3_directory/js/jquery.js\"></script>\n";
	echo "\t<script type=\"text/javascript\" src=\"$sw3_directory/js/sw3.js\"></script>\n";
	echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/main.css\" media=\"screen\" />\n";
	if ( is_single() ) {
		echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/single.css\" media=\"screen\" />\n";
		echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/comments.css\" media=\"screen\" />\n";
	} else if ( is_page() ) {
		echo "\t<script type=\"text/javascript\" src=\"$sw3_directory/js/sw3Portfolio.js\"></script>\n";
		echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/page.css\" media=\"screen\" />\n";
		echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/comments.css\" media=\"screen\" />\n";
		if ( is_page('Resume') ) {
			echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/hresume.css\" media=\"screen\" />\n";
			echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/hresume-print.css\" media=\"print\" />\n";
		}
	} else if ( is_archive() || is_search() || is_404() ) {
		echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/archive.css\" media=\"screen\" />\n";
	}
	echo "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"$sw3_directory/css/print.css\" media=\"print\" />\n";
}
add_action('wp_head', 'sw3_head');
?>